package database.models;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;

import twitter4j.Status;

import database.objects.DatabaseObject;

/**
 * Abstract Model for all models.
 * 
 * @author Project group 9
 * 
 */
public abstract class Model {
	protected Connection con;
	protected Statement statement;

	public Model(Connection con) {
		try {
			this.con = con;
			statement = con.createStatement();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}

	public abstract ArrayList<DatabaseObject> load(String column, long id,
			String value);

	public abstract void save(Status status);
}
